// components/sideBar.js
Component({
  properties: {},

  data: {
    show: false
  },

  methods: {
    // 打开或关闭侧栏
    onCloseOrOpen() {
      this.setData({ show: !this.data.show });
    }
  }
})
